<?php
namespace Modules\Buy\Entities;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
protected $guarded = [];

    public function orderlist(){
        return $this->hasMany(Orderlist::class,'orderId','orderId');
    }

//    订单对地址为多对一
    public function dizhi()
    {
        return $this->belongsTo(Adress::class,'id','adress_id');
    }
}
